import os
from api.recognize.api import app
import uvicorn
if __name__ == '__main__':
    # 确保上传目录存在
    os.makedirs('static/uploads', exist_ok=True)
    
    # 启动Flask应用
    uvicorn.run(app, host='0.0.0.0', port=8181)